<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <table border="1" cellspacing="0" align="center">
        <caption>商品信息详细</caption>
        <tr>
            <th>商品种类</th>
            <td>过季旧款</td>
            <td>当前热销</td>
            <td>秋季新品</td>
        </tr>
        <tr>
            <th>商品状态</th>
            <td id="down">已下架</td>
            <td class="up"><span>热卖中</span></td>
            <td class="up">等待上架</td>
        </tr>
    </table>
    <script>
        var downGoods = document.getElementById('down');
        console.log(downGoods.innerHTML);
        var upGoods = document.getElementsByClassName('up');
        console.log(upGoods[0].innerHTML);
        upGoods[1].innerHTML = '已上架'
    </script>
</body>
</html>